package com.example.isoftservice.mapper;

import com.example.isoftservice.pojos.News;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface NewsMapper {

    //查询通知列表
    List<Map<String, Object>> selectNewsList();

    //按id查询通知
    News selectNewsById(Integer newsId);

    int insertNews(News news);

    int deleteByIds(Integer[] ids);

    int updateNewsById(News news);
}
